﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Initialize.aspx.cs" Inherits="CentralOffice.WebClient.Initialize" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>系统初始化</title>
    <link rel="stylesheet" type="text/css" href="theme/2/style.css" />

    <script language="javascript" type="text/javascript">
// <!CDATA[

        function btnOK_onclick() {

        }

        function btnOK_onclick() {

        }

// ]]>
    </script>
</head>
<body class="bodycolor centerContainer">
<div style="margin-top:10px;" class="wrapper"><img src="images/notify_new.gif" alt="系统初始化" /><span class="big3">系统初始化</span></div>
    <form id="form1" runat="server">
    <table class="TableBlock wrapper" width="90%" >
    <tr>
      <td class="TableData" >使用单位：</td><td class="TableData"><asp:TextBox ID="txtDepartment" runat="server" CssClass="BigInput"></asp:TextBox><span class="warning">(必填)</span></td>
    </tr>
    <tr>
        <td class="TableData">系统管理员角色名称：</td><td class="TableData"><asp:TextBox ID="txtRole" runat="server" CssClass="BigInput"></asp:TextBox><span class="warning">(必填)</span></td>
    </tr>
    <tr>
        <td class="TableData">管理员帐号：</td><td class="TableData"><asp:TextBox ID="txtUsername" runat="server" CssClass="BigInput"></asp:TextBox><span class="warning">(必填)</span></td>
    </tr>
    <tr class="TableControl">
      <td style="text-align:center;" colspan="2">
        <asp:Button ID="btnOK" runat="server" style="margin-right:100px;" CssClass="BigButton" Text="执行初始化" onclick="btnOK_Click" />
        <%--<asp:Button ID="btnLogin" runat="server" style="margin-right:100px;" CssClass="BigButton" Text="登录系统" onclick="btnOK_Click" />--%>
        <input type="button" value="登录系统" id="btnLogin" style="display:none;margin-right:100px;" onclick="window.location = 'default.aspx';" />
        <input type="reset" value="重置" class="BigButton"  />
      </td>
    </tr>
    </table>
    <br />
    <asp:Label ID="lblFinish" runat="server" Text="系统已经初始化了，您可以直接登录。" Visible="false"></asp:Label>
<script language="javascript" type="text/javascript">
// <!CDATA[
    if (document.getElementById("txtDepartment").value.length > 0
    && document.getElementById("txtRole").value.length > 0
    && document.getElementById("txtUsername").value.length > 0) {
        document.getElementById("btnOK").style.display = "none";
        document.getElementById("btnLogin").style.display = "inline";
    }
        function btnOK_onclick() {

        }
// ]]>
    </script>
    </form>
</body>
</html>
